class Menuinfo 
{
	String menuname;
	String url;
	Integer ordernum = 100;
	String isleaf = '0';
	String isstop = '0';
	//Menuinfo pmenu;
	static belongsTo = [pmenu:Menuinfo]
	static hasMany = [cmenus:Menuinfo];
	
	String toString() { menuname }
	
	static constraints = 
	{
		menuname(maxSize:50, blank:false, nullable:false);
		url(maxSize:100, blank:false, nullable:false);
		isleaf(inList:['0','1']);
		isstop(inList:['0','1']);
		pmenu(nullable:true);
	}
	
}